home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_gen / jav503.zip / SHAPE.JAV < prev    next >
Text File  |  1996-04-17  |  838b  |  67 lines

  1. // -[KeepHeading]-
  2.  
  3.  
  4. // -[Copyright]-
  5.  
  6. /**
  7.  * (c) Copyright 1993-1994. Step Ahead Software Pty Limited. All rights
  8.  * reserved.
  9.  */
  10. import java.lang.*;
  11.  
  12.  
  13. // -[KeepBeforeClass]-
  14. import java.awt.*;
  15.  
  16.  
  17. // -[Class]-
  18.  
  19. /**
  20.  * @jTitle           Shape
  21.  * @jOverridability  must be overridden (abstract)
  22.  * @jDescription
  23.  * Describe here
  24.  * 
  25.  * @see              
  26.  */
  27. public abstract 
  28. class Shape
  29. {
  30. // -[KeepWithinClass]-
  31.  
  32.  
  33. // -[Fields]-
  34.  
  35.  
  36.  
  37. /**
  38.  * X coordinate of shape's origin.
  39.  */
  40. protected int x;
  41.  
  42.  
  43.  
  44. /**
  45.  * Y coodinate of shapes origin.
  46.  */
  47. protected int y;
  48.  
  49.  
  50. // -[Methods]-
  51.  
  52. /**
  53.  * Constructs a shape object with the given x,y position.
  54.  */
  55. public Shape(int initX, int initY)
  56. {
  57.     // Set up initial location
  58.     x = initX;
  59.     y = initY;
  60. }
  61.  
  62. public abstract void show(Graphics g);
  63.  
  64. }
  65.  
  66.  
  67.